package com.example.demo;

import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

@SpringBootApplication
public class SpringbootNoParentDemoApplication {

    public static void main(String[] args) {
//        SpringApplication.run(SpringbootNoParentDemoApplication.class, args);

        SpringApplicationBuilder builder = new SpringApplicationBuilder(SpringbootNoParentDemoApplication.class);
        //- 关闭banner
        builder.bannerMode(Banner.Mode.OFF);
        SpringApplication application = builder.build();
        application.run(args);
    }

}
